// components/book-swiper/cpns/dx-swiper-item/dx-swiper-item.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    bookListInfo: {
      type: Object,
      value: {

      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    goDetail() {
      console.log(this.data.bookListInfo);
      const searchParam = {
        source: "booklist",
        searchKey: "book_list_id",
        searchValue: this.data.bookListInfo.book_list_id
      }
      wx.navigateTo({
        url: '/pages/bookSearchShow/bookSearchShow?searchParam=' + JSON.stringify(searchParam),
      })
      // wx.navigateTo({
      //   url: `/pages/bookDetail/bookDetail?book_id=${book_id}`,
      // })
    }
  }
})